package com.beifu.manager.dao;

import com.beifu.manager.model.Organizer;
import com.beifu.manager.model.OrganizerExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface OrganizerMapper {
    int countByExample(OrganizerExample example);

    int deleteByExample(OrganizerExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Organizer record);

    int insertSelective(Organizer record);

    List<Organizer> selectByExample(OrganizerExample example);

    Organizer selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Organizer record, @Param("example") OrganizerExample example);

    int updateByExample(@Param("record") Organizer record, @Param("example") OrganizerExample example);

    int updateByPrimaryKeySelective(Organizer record);

    int updateByPrimaryKey(Organizer record);

    /**
     * 获取角色分页数据
     * @return
     */
    List<Organizer> getRolePage(@Param("start") int start, @Param("pageNum") int pageNum,  @Param("example")OrganizerExample example);

    /**
     * 批量删除
     * @param idsArr
     */
    int batchDel(String[] idsArr);
}